<template>
  <a-card :bordered="false">
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
        <a-row :gutter="24">
          <a-col :md="6" :sm="8">
            <a-form-item label="合同号">
              <a-input placeholder="合同号" v-model="queryParam.contractNumber"></a-input>
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="8" >
            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
            </span>
          </a-col>

        </a-row>
      </a-form>
    </div>
    <!-- 查询区域-END -->

    <!-- 操作按钮区域 -->

    <!-- table区域-begin -->
    <div>
      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
      </div>

      <a-table
        ref="table"
        size="middle"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
        @change="handleTableChange">

      </a-table>
    </div>

  </a-card>
</template>

<script>

  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import ZxjEip2cXtldModal from './modules/ZxjEip2cXtldModal'
  import { getAction,putAction,postAction } from '@/api/manage'
  export default {
    name: "ZxjEip2cXtldList",
    mixins:[JeecgListMixin],
    components: {
    },
    data () {
      return {
        loading: false,
        title: "批量处理",
        visible: false,
        description: '系统联调管理页面',
        // 查询条件
        queryParam: {
        },
        bpmStatusDictOptions:[],
        // 表头
        columns: [
          {
            title: '序号',
            dataIndex: '',
            key:'rowIndex',
            width:60,
            align:"center",
            customRender:function (t,r,index) {
              return parseInt(index)+1;
            }
          },
          {
            title:'合同号',
            align:"center",
            dataIndex: 'contractNumber'
          },
          {
            title:'销售订单号',
            align:"center",
            dataIndex: 'salesOrdNo'
          },
          {
            title:'出厂检测审批时间',
            align:"center",
            dataIndex: 'endTime'
          },
          {
            title:'是否已抓取',
            align:"center",
            dataIndex: 'ioflag',
            customRender:function (t,r,index) {
              if (t==='1'){
                return '否';
              } else {
                return '是';
              }
            }
          }
        ],
        url: {
          list: "/apis/zxjEip2cXtld/reviewListPage"
        },
        dictOptions:{
        }
      }
    },
    computed: {
      importExcelUrl: function(){
        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
      }
    },
    methods: {
      initDictConfig(){
        //初始化字典
        /* initDictOptions('').then((res) => {
           if (res.success) {
             this.bpmStatusDictOptions = res.result;
           }
         });*/
      }
    }
  }
</script>